#ifndef RECTANGLE_H_
#define RECTANGLE_H_

class Range;

class Rectangle
{

public:
    Rectangle(const double length_i, const double width_i);
    ~Rectangle(){}

    double calcArea() const;
    double calcPerimeter() const;

    void setLength(const double& length_i);
    void setWidth(const double& width_i);

private:
    double length_m;
    double width_m;

    static Range* lenRange_m;
    static Range* widRange_m;

    bool isValid() const;
};


#endif /* RECTANGLE_H_ */

